home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / graficos / plydat14.arj / SINFN.PI < prev    next >
Encoding:
Text File  |  1992-04-05  |  648 b   |  32 lines

  1. // File demonstrating height field function
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Define range of frames for animated sequence of images
  5. //start_frame 0
  6. //total_frames 29
  7. //outfile sinsf
  8.  
  9. define theta_offset radians(frame * 12)
  10.  
  11. // Set up the camera
  12. viewpoint {
  13.    from <0,5,-5>
  14.    at <0,0,0>
  15.    up <0,1,0>
  16.    angle 30
  17.    resolution 256, 256
  18.    }
  19.  
  20. // Get various surface finishes
  21. include "colors.inc"
  22.  
  23. // Set up background color & lights
  24. background SkyBlue
  25. light <10,10,-10>
  26.  
  27. // Define a sinusoidal surface
  28. object {
  29.    height_fn 80, 80, -2, 2, -2, 2, 0.25 * sin(18.85 * x * z + theta_offset)
  30.    shiny_red
  31.    }
  32.